package cn.gson.springboot.info;


import org.springframework.boot.SpringBootConfiguration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

@SpringBootConfiguration
public class MySpringMVCConfig extends WebMvcConfigurerAdapter{
      
	@Override
	public void addInterceptors(InterceptorRegistry regstry) {
		 //注册自定义拦截器，添加拦截路径和排除拦截路径  
		regstry.addInterceptor(new WebSecurityConfig()).addPathPatterns("/**").excludePathPatterns("/Land");
	
	}
}
